<?php $this->fetch('public/head') ?>
<div class="layui-tab layui-tab-brief">
    <div class="layui-tab-content">
        <!-- 内容主体区域 -->
        <div class="layui-progress" lay-showpercent="true">
            <div class="layui-progress-bar" lay-percent="<?php echo round($final_score,2)?>/ 10" style="width: <?php echo ($final_score*10).'%'?>;">
                <span class="layui-progress-text"><?php echo $final_score ?>/ 10</span>
            </div>
        </div>
        <div class="layui-tab">
            <ul class="layui-tab-title">
                <li class="layui-this">领导评分</li>
                <li class="">员工评分</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <table class="layui-table" lay-even>
                        <thead>
                        <tr>
                            <th>昵称</th>
                            <th>评分</th>
                            <th>评分时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($array1 as $v1){?>
                        <tr>
                            <td class="user_name"><?php echo $v1['user_name']?></td>
                            <td><?php echo $v1['score']?></td>
                            <td><?php echo $v1['add_time']?></td>
                        </tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
                <div class="layui-tab-item ">
                    <table class="layui-table" lay-even>
                        <thead>
                        <tr>
                            <th>昵称</th>
                            <th>评分</th>
                            <th>评分时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach($array2 as $v2){?>
                            <tr>
                                <td class="user_name"><?php echo $v2['user_name']?></td>
                                <td><?php echo $v2['score']?></td>
                                <td><?php echo $v2['add_time']?></td>
                            </tr>
                        <?php }?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $this->fetch('public/script') ?>

<script>

</script>